package com.webchat.chat.service;
import com.webchat.chat.core.dto.loginDto.MenuReturnDTO;
import com.webchat.chat.model.Permission;
import com.webchat.chat.core.Service;

import java.util.Collection;
import java.util.List;


/**
 * Created by admin on 2018-06-29.
 */
public interface PermissionService extends Service<Permission> {

    Collection<? extends String> findPermissionCodeByUserId(String userId);

    List<MenuReturnDTO> findAllMenuByUserId(String userId);

    List<Permission> findPermissionTree();

    void deletePermission(String id);
}
